package com.bringspring.common.constant.model;

/**
 * 类功能
 *
 * @author 开发平台组 YanYu
 * @version V1.0.0
 * @copyright 股份有限公司
 * @date 2021/12/20
 */
public class MCode {

    /**
     * 提示信息类型
     */
    private final String type;

    /**
     * 错误编码
     */
    private final String code;

    /**
     * description 描述
     */
    private final String desc;


    public MCode(String type, String code, String desc){
        this.type = type;
        this.code = code;
        this.desc = desc;
    }

    public String getType() {
        return type;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public String get(){
        return type + ":" + code + "-" + desc;
    }


}
